package com.zzyl.serve.service.member;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.serve.domain.member.Reservation;
import com.zzyl.serve.dto.member.ReservationDto;
import com.zzyl.serve.vo.member.ReservationCountBytimeVo;

/**
 * 预约信息Service接口
 * 
 * @author ruoyi
 * @date 2025-03-12
 */
public interface IReservationService extends IService<Reservation>
{

    /**
     * 查询预约信息列表
     * 
     * @param reservation 预约信息
     * @return 预约信息集合
     */
    public List<Reservation> selectReservationList(Reservation reservation);

    /**
     * 新增预约信息
     * 
     * @param reservationDto 预约信息
     * @return 结果
     */
    public int insertReservation(ReservationDto reservationDto);





    //每个时间段的预约次数

    List<ReservationCountBytimeVo> getCountByTime(Long time);
    //统计当前登录人的取消预约次数
    Integer getCancelledReservationCount();
     //取消预约
    int cancelReservation(Long id);
    void updateReservationStatus();
}
